import { INestApplication } from '@nestjs/common';
import { knife4jSetup } from 'nest-knife4j';

export function setupKnife4j(app: INestApplication) {
  knife4jSetup(app, [
    {
      name: 'v1',
      url: '/api/api-docs-json',   // 与上面 SwaggerModule 的 path 对应
      swaggerVersion: '1.0',
      location: '/api/api-docs-json',
    },
  ]);
}